<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="keywords" content="musico, terapia, altismo, alzheimer" />
	<title>AmtRj-Associação de Músico Terapeutas RJ</title>
	<h:outputStylesheet library="css" name="amtRj.css"/>
	<script>
		
		$(document).ready(function(){
			$("#cmdImprimir").click(function() {
				Janela = '/associado/listar.xhtml';
			    window.open(Janela, "TOP", "top=50, left=50, toolbar=no,location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=900px, height=800px");
			}
		});
		
	</script>
</h:head>
<h:body>
	<h:panelGrid bgcolor="#999999" columns="2">
		<h:column>
			<!--  h:graphicImage library="imagens" name="AmtRj-Titulo.png" / -->
			AMTRJ
		</h:column>
		<h:column>Teste</h:column>
	</h:panelGrid>
	<h:form id="listagem">
		<p:dataTable var="associado" dynamic="true" lazy="false"
		             value="#{associadoHandler.associados}" 
					 style="width: 100%"
					 rows="5000"
		             id= "associados" 
					 border="1">
			<p:column>
				<f:facet name="header">Id</f:facet>
				<h:outputText value="#{associado.id}"> </h:outputText>
			</p:column>
			<p:column>
				<f:facet name="header">Nome</f:facet>
				<h:outputText value="#{associado.nome}"> </h:outputText>
			</p:column>
			<p:column>
				<f:facet name="header">No.Amt</f:facet>
				<h:outputText value="#{associado.inscricaoAmt}"> </h:outputText>
			</p:column>
			<p:column>
				<f:facet name="header">CPF</f:facet>
				<h:outputText value="#{associado.cpf}"> </h:outputText>
			</p:column>
			<p:column>
				<f:facet name="header">Graduação</f:facet>
				<h:outputText value="#{associado.areaGraduacao}"> </h:outputText>
			</p:column>
			<p:column>
				<f:facet name="header">Bairro</f:facet>
				<h:outputText value="#{associado.bairro}"> </h:outputText>
			</p:column>
		</p:dataTable>
	</h:form>
</h:body>
</html>
